/*==============================================
 * Task1a: Testing CGameWindow
 *
 * Written by Dong ChangJie
 *==============================================*/
#include "GameWindow.h"

int WINAPI WinMain(HINSTANCE hInstance, 
				   HINSTANCE hPrevInstance, 
				   LPTSTR lpCmdLine, int nCmdShow)
{
	// create the window
	CGameWindow win;

	// ask user for full screen
	bool full=false;
	if (MessageBox(NULL, "Fullscreen?", "GameWindow", MB_YESNO)==IDYES)
	{
		full=true;
	}

	if (!win.OpenWin(hInstance,640,480,full))	// open the window
	{
		MessageBox(NULL, "Unable to create window", "ERROR", MB_OK);
		return 3;
	}

	return win.Go(hInstance);	// runs the main loop
}